From 83636b7ef2d2591a251cf09c74a71ea6cc2ff3d1 Mon Sep 17 00:00:00 2001 From: Debian Multimedia Maintainers Date: Sun, 20 Sep 2026 13:47:08 +0200 Subject: [PATCH] CVE-2023-49468 commit 3e822a3ccf88df1380b165d6ce5a00494a27ceeb Author: Dirk Farin Date: Thu Nov 23 19:11:34 2023 +0100 fix #432 (undefined IPM) Gbp-Pq: Name CVE-2023-49468.patch --- libde265/image.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libde265/image.h b/libde265/image.h index 0b53605..0a0c0e3 100644 --- a/libde265/image.h +++ b/libde265/image.h @@ -624,7 +624,14 @@ public: enum IntraPredMode get_IntraPredMode(int x,int y) const { - return (enum IntraPredMode)intraPredMode.get(x,y); + uint8_t ipm = intraPredMode.get(x,y); + + // sanitize values if IPM is uninitialized (because of earlier read error) + if (ipm > 34) { + ipm = 0; + } + + return static_cast(ipm); } enum IntraPredMode get_IntraPredMode_atIndex(int idx) const -- 2.39.5